import request from '@/utils/request';

//宠物类别
export const categorySimpleQuery = (params: any) => {
    return request({
        url: '/app-api/system/pet/category/simple/query',
        method: 'POST',
        body: params,
        hideLoading: false,
    });
};
//新增宠物资料
export const petCreate = (params: any) => {
    return request({
        url: '/app-api/member/pet/create',
        method: 'POST',
        body: params,
        hideLoading: false,
    });
};
//修改宠物资料
export const petUpdate = (params: any) => {
    return request({
        url: '/app-api/member/pet/update',
        method: 'PUT',
        body: params,
        hideLoading: false,
    });
};
//获得宠物资料
export const mypetProfile = (params: any) => {
    return request({
        url: '/app-api/system/pets/mypet/profile',
        method: 'GET',
        body: params,
        hideLoading: false,
    });
};
//获得我的宠物详情
export const mypetProfileDetail = (params: any) => {
    return request({
        url: `/app-api/member/pet/get?id=${params}`,
        method: 'GET',
		   // body: params,
        hideLoading: false,
    });
};
//删除宠物资料
export const petDelete = (params: any) => {
    return request({
        url: `/app-api/member/pet/delete?id=${params.id}`,
        method: 'DELETE',
        hideLoading: false,
    });
};
